package{
    /**
     *@author:Childhood
     *@website:flashas3.diandian.com
     *说明：1.自由绘画、直线绘画、撤销、返回、清空、保存
     *      2.在自由绘画和直线绘画中，包含了对图形间距的选择，图形间距决定了图案的密集程度
     *      3.单个图形的长和宽为30px
     */
    import flash.display.Sprite;
    import flash.events.Event;
    import flash.display.StageAlign;
    import flash.display.StageScaleMode;
    [SWF(width="900",height="600")]
    public class Main extends Sprite{
        public function Main():void{
            stage.scaleMode = StageScaleMode.NO_SCALE;
            stage.align = StageAlign.TOP_LEFT;
            addEventListener(Event.ADDED_TO_STAGE,onAddedToStage);
        }

        private function onAddedToStage(event:Event):void{
            removeEventListener(Event.ADDED_TO_STAGE,onAddedToStage);
            init();
        }

        private function init():void{
        }
    }
}

